/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package SwingAnimation;

import GUIUtilities.LabelManager;
import java.awt.Color;
import java.awt.Dimension;
import javax.swing.JLabel;

/**
 *
 * @author Heather
 */
public class CCPVNoConflictLabel extends JLabel
{

  int alpha = 255;
  Color winBG = new Color(100, 100, 220, alpha);
  Color winTextColor = new Color(0, 0, 0);

  public CCPVNoConflictLabel()
  {
    super("");
      setOpaque(true);
      setText("  No Conflict!");
      setBackground(winBG);
      setForeground(winTextColor);
      resizeLabel();
  }

  private void resizeLabel()
  {
    Dimension defaultD = LabelManager.getLabelDimensions(this);
    Dimension newD = new Dimension(defaultD.width + 8, defaultD.height + 5);
    setSize(newD);
    setPreferredSize(newD);
  }
}
